//
//  SourceTreeCommitLoader.swift
//  GitTFGUI
//
//  Created by Samuel Richard Magny on 2015-09-27.
//  Copyright © 2015 Samuel Richard Magny. All rights reserved.
//

import Cocoa
import SwiftTools

class SourceTreeCommitLoader: ExternalCommitLoaderCompliant {

    private let sourceTreeLocation:String = "/Applications/SourceTree.app"
    

    func commit(pathToRepository:String, completionHandler:(withSuccess:Bool) -> ())
    {
        let launcher = CocoaAppLauncher(applicationName: "SourceTree", args: pathToRepository)
        launcher.launch()
    }


    
}
